str1='111'
str2="222"
str3="""333
333
333"""
print('{0}----{1}----{2}'.format(1,2,3))
str4='666'
print(f'这个程序{str4}')

print('let\'s learn Python')

#print(f'{i}*{j}={i*j}')

sep=','
print(sep.join(str4))


str5='good good study'
print("good".center(30,'*'))

for i in str5:
    print(i,end='')

word = 't'
string = 'Python'
result = string.find(word)
print(result)

string = 'He said, "you have to go forward, ' \
'Then turn left, Then go forward, and Then turn right."'
# 指定替换两次
new_string = string.replace("Then", "then",2)
print(new_string)


string= "Hello, my name is Wang Hong"
# 以空格作为分割符，并分割2次
print(string.split(' ', 2))

symbol = '*'
world = 'Python'
print(symbol.join(world))

